/**
 * 给定数组A，给定K，求数组A中比大于等于K的数量
 */
#include <bits/stdc++.h>
#include <bits/extc++.h>
using namespace std;

using llt = long long;
using vi = vector<int>;
using vll = vector<llt>;

int N;
vi A;
int K;

int proc(){
    int ans = 0;
    for(auto i : A){
        if(K <= i) ans += 1;
    }
    return ans;
}
void work(){
    cin >> N;
    A.assign(N, {});
    for(auto & i : A) cin >> i;
    cin >> K;
    cout << proc() << endl;
    return;
}

int main(){
#ifndef ONLINE_JUDGE
    freopen("z.txt", "r", stdin);
#endif
    ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);	
    int nofkase = 1;
	// cin >> nofkase;
	while(nofkase--) work();
	return 0;
}